package com.qingchi.qing.user.dao.model;

import com.qingchi.qing.user.dao.model.base.QingUserBaseDo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "q_user")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class QingUseDo extends QingUserBaseDo {
    private String nickname;
    private String avatar;
    private String gender;
    private String birthday;
    private Integer age;
    private String city;

    //获取userId的正确方式为getUserId，这个id不正确
    @Deprecated
    public Integer getId() {
        return super.getId();
    }
}